reference integer specifys the channel you want to use. Use
the reference number obtained from the
SP Open Voice function. The channel must be
open.
rate integer the rate in Words per Minute (WPM) which needs
to be applied to the voice. The normal rate of the
voice is not changed if you pass a zero value.
The rate is usually between 150 WPM to around
180 WPM.
pitch integer the pitch in Hertz (Hz) which needs to be applied
to the voice. The normal pitch of the voice is not
changed if you pass a zero value.
The pitch is usually between 90 Hz to 300 Hz.
err integer returns the error which occured.
A value of zero indicates no error occured. See
below for a list of possible errors.
Set the rate and pitch of the specified voice.
The rate and pitch you specify may not be in the range for the speech synthesizer behind this voice. It is then changed to the nearest possible value by the speech synthesizer. The rate and pitch parameters are not changed to reflect the real values as they are set after using SP Set Attr. You can call SP Get Attr to get the corrected values.
See for more information the Speech Manager documentation or use values obtained by using the SP Get Attr function to modify a voice.
Examples:
$err := SP Set Attr ($speechref;$rate+5;$pitch+15)
$err := SP Set Attr ($speechref;150;175)
Possible errors:
0 No Error
-4 Speech Pack can not be used (Speech Mgr not available)